﻿<UserControl x:Class="WpfIPodControlsTest.PhotoDemo"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:ctls="clr-namespace:WPFIPodControls;assembly=IPodControls"
    Height="480" Width="320">
    <Grid>
        <Grid.Resources>
            <DataTemplate x:Key="ImgTemplate">
                <Image Source="{Binding .}"/>
            </DataTemplate>
        </Grid.Resources>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <ctls:IPodPageScroller x:Name="pageScroller" 
                               ItemTemplate="{StaticResource ImgTemplate}" 
                               Background="Black"
                               ScrollingDuration="250">
            
        </ctls:IPodPageScroller>
        <DockPanel Grid.Row="1">
            <Button Content="Previous Page" Click="Button_Click"/>
            <Button Content="Next Page" Click="Button_Click_1"/>
            <Grid DockPanel.Dock="Right">
                <TextBlock Text="choose images directory" HorizontalAlignment="Right" Margin="0,0,20,0"/>
                <Button Content="..." Click="Button_Click_2" HorizontalAlignment="Right"/>
            </Grid>
        </DockPanel>
    </Grid>
</UserControl>
